﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Adminitrator.master"
  AutoEventWireup="true" CodeFile="Details.aspx.cs" Inherits="admin_Menus_Details" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="Server">
  <h1 id="h3Title" class="title" runat="server">
    Thêm mới menu</h1>
  <div class="detail ">
    <fieldset class="fieldset">
      <legend>Thông tin menu</legend>
       <asp:ScriptManager ID="ScriptManager1" runat="server">
      </asp:ScriptManager>
       <asp:UpdatePanel ID="updatePanelMod" runat="server">
          <ContentTemplate>          
      <table style="width: 100%">
        <tr>
          <td valign="top" style="padding-top: 8px; width: 95px">
            Tên menu
          </td>
          <td>
             <asp:TextBox ID="txtName" runat="server" CssClass="textBox" />
          </td>
        </tr>
        <tr>
          <td>
            Vị trí
          </td>
          <td>
            <asp:DropDownList ID="dropPosition" runat="server" CssClass="dropdown" Width="170px" />
          </td>
        </tr>      
            <tr>
              <td>
                Cấp menu
              </td>
              <td>
                <asp:DropDownList ID="dropMenuLevel" CssClass="dropdown" runat="server" OnSelectedIndexChanged="dropLevel_SelectedIndexChanged"
                  AutoPostBack="true">
                </asp:DropDownList>
              </td>
            </tr>
            <tr id="trParent" runat="server" visible="false">
              <td>
                Menu cha
              </td>
              <td>
                <asp:DropDownList ID="dropMenuParent" CssClass="dropdown" Width="170px" runat="server">
                </asp:DropDownList>
              </td>
            </tr>
        <tr>
          <td>
            Kiểu menu
          </td>
          <td>
            <asp:DropDownList ID="dropMod" CssClass="dropdown" runat="server" AutoPostBack="true"
              OnSelectedIndexChanged="dropMod_SelectedIndexChanged">
            </asp:DropDownList>
          </td>
        </tr>
        <tr id="trCategory" runat="server" visible="false">
          <td>
            Chọn danh mục
          </td>
          <td>
            <asp:DropDownList ID="dropCategory" runat="server" CssClass="dropdown" OnSelectedIndexChanged="dropCategory_SelectedIndexChanged" />
          </td>
        </tr>
        <tr id="trArticle" runat="server" visible="false">
          <td>
            Chọn bài viết
          </td>
          <td>
            <asp:DropDownList ID="dropArticle" runat="server" Width="170px" />
          </td>
        </tr>
        <tr id="trLink" runat="server" visible="false">
          <td>
            Link
          </td>
          <td>
            <asp:TextBox ID="txtLink" runat="server" CssClass="textBox" />
          </td>
        </tr>
        <tr>
          <td>
            Hiển thị
          </td>
          <td>
            <asp:DropDownList ID="dropTarget" CssClass="dropdown" runat="server" Width="170px">
              <asp:ListItem Text="Cửa sổ hiện tại" Value="_self" Selected="True" />
              <asp:ListItem Text="Cửa sổ mới" Value="_blank" />
            </asp:DropDownList>
          </td>
        </tr>
        <tr>
          <td>
            Tình trạng
          </td>
          <td>
            <asp:RadioButton ID="radioEnable" GroupName="radioStatus" runat="server" Checked="true" />Bật
            <asp:RadioButton ID="radioVisible" GroupName="radioStatus" runat="server" />Tắt
          </td>
        </tr>       
      </table>
      </ContentTemplate>         
      </asp:UpdatePanel>
      <table style="width: 100%">
       <tr>
          <td style="width: 95px">
            &nbsp;
          </td>
          <td style="padding-top: 10px">
            <asp:Button ID="btnOk" runat="server" Text="" CssClass="button btn-save" OnClick="btnOk_Click" />
            <input type="reset" value="" class="button btn-reset" />
            <asp:HyperLink ID="btnBack" runat="server" Text="Danh sách" CssClass="button btn-back"
              NavigateUrl="~/admin/Menus/List.aspx" />
          </td>
        </tr>
      </table>
    </fieldset>
  </div>
  <asp:Literal ID="lbThongBao" runat="server" />
</asp:Content>
